<?php 
/**
 * 截取字符串
 * @param  [type] $var [description]
 * @param  [type] $len [description]
 * @return [type]      [description]
 */
function truncate_hd($var,$len)
{
	return mb_substr($var,0,$len,'utf8');
}



 ?>